package com.iter.devbox.pattern.mediator;

public class ConcreteMediator extends Mediator {

	private ConcreteColleagueA concreteColleagueA;
	
	private ConcreteColleagueB concreteColleagueB;

	public ConcreteColleagueA getConcreteColleagueA() {
		return concreteColleagueA;
	}

	public void setConcreteColleagueA(ConcreteColleagueA concreteColleagueA) {
		this.concreteColleagueA = concreteColleagueA;
	}

	public ConcreteColleagueB getConcreteColleagueB() {
		return concreteColleagueB;
	}

	public void setConcreteColleagueB(ConcreteColleagueB concreteColleagueB) {
		this.concreteColleagueB = concreteColleagueB;
	}

	@Override
	public void colleagueChanged(Colleague colleague) {
		colleague.change();
	}
}